/**
 * 
 */
package com.antilia.infomaresme.pages.signin;

import org.apache.wicket.Component;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.model.ResourceModel;

import com.antilia.infomaresme.pages.BasePage;
import com.antilia.infomaresme.pages.IdiomaPanel;
import com.antilia.infomaresme.pages.TitlePanel;


/**
 * @author Ernesto
 *
 */
public class LogInPage extends BasePage {

	private static final long serialVersionUID = 1L;
	
	/**
	 * 
	 */
	public LogInPage() {
		LogInPanel contents = new LogInPanel("contents") {
			
			private static final long serialVersionUID = 1L;

			@Override
			public void onLogIn(AjaxRequestTarget target) {
				
			}
			
			@Override
			public void onRegister(AjaxRequestTarget target) {
				
			}
		};
		add(contents);
	}
	
	@Override
	protected Component newRightPanel(String id) {
		return new IdiomaPanel(id);
	}
	
	@Override
	protected Component newTopMavigation(String id) {
		return new TitlePanel(id, new ResourceModel("loginPage"));
	}

}
